import { xcxAxiosGet, xcxAxiosPost, xcxAxiosGetDownLoad } from '@/api/axios.js'

// export const findAll = (params = {}) => {
//   return xcxAxiosPost('/product/findAll', params)
// }

/**
 * @description: 病种信息列表查询接口
 * @param null
 * @return list
 */
export const queryDiseaseAll = (params) => {
  return xcxAxiosGet('/intelligentUnderwriting/queryDiseaseAll', params)
}

/**
 * @description: 问题答案关联信息列表查询接口
 * @param { sonDiseaseName, issueId }
 * @return list
 */
export const queryByIssueId = (params) => {
  return xcxAxiosPost('/intelligentUnderwriting/queryByIssueId', params)
}

/**
 * @description: 智能核保接口
 * @param { diseaseIds, issueIds, answerIds }
 * @return list
 */
export const queryByVerdict = (params) => {
  return xcxAxiosPost('/intelligentUnderwriting/queryByVerdict', params)
}

/**
 * @description: 病种核保手册下载接口（根据病种编号下载核保手册）
 * @param { resource: 'GFC0216' }
 * @return list
 */
export const diseaseDownload = (params) => {
  return xcxAxiosGetDownLoad('/intelligentUnderwriting/download', params)
}


